<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<script src="//cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
456.a.com系统<br/>
用户名：<input id="name"/><br/>
<button id="login">登录</button>
</body>
<script>
    $(function(){
        $("button").click(function(){
            var name = $("#name").val();
            $.get("http://localhost:8080/login?name="+name,function(data,status){
                $.cookie('token',data, {domain:'a.com'});
                window.location.href = "http://456.a.com:8101/indexa2";
            });
        });
    });
</script>
</html>